<?php
include "connectStoreDB.php";

$item=$_GET["item"];

$sql="DELETE FROM inventory WHERE item=$item;";

mysqli_query($conn, $sql);
echo "$item deleted!";

//close connection
mysqli_close($conn);

//redirect back to admin page
header("location:adminpage.php");
?>